import DNS

def get_reg_address(reg_host = "reg.sdju.ahhhh.com.cn",name_server="dns8.hichina.com") -> str:
    response = DNS.DnsRequest(reg_host, server=name_server, qtype='A').req()
    return response.answers[0]['data']


if __name__ == "__main__":
    print(get_reg_address())